package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.SysEmp;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.service.ISysEmpService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

import static com.ruoyi.common.utils.PageUtils.startPage;
@Controller
@RequestMapping("/system/emp")
public class SysEmpController extends BaseController {


    private ISysEmpService empService;
    //@RequiresPermissions("system:user:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(SysEmp emp)
    {
        startPage();
        List<SysEmp> list = empService.selectEmpList(emp);
        return getDataTable(list);
    }


}
